/**
 * <p>Title: liteflow</p>
 * <p>Description: 轻量级的组件式流程框架</p>
 * @author Bryan.Zhang
 * @email weenyc31@163.com
 * @Date 2020/4/1
 */
package com.example.liteflow.mysql.cmp;

import com.example.liteflow.mysql.model.TestModel;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeComponent;

@LiteflowComponent("a")
public class ACmp extends NodeComponent {

	@Override
	public void process() {
		TestModel testM = this.getContextBean(TestModel.class);
		
		int  num = testM.getNum();
		int j=0;
		for(int i=0;i<num; i++){
//			System.out.println(testM.getStr()+"  -> : "+ i);
			j=j+i;
		}
		testM.setMsg(testM.getMsg()+" aaaaaaa " +j);
		
		
	}
}
